package com.dd.cloud.user.entity.doctor;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.gitee.sunchenbin.mybatis.actable.annotation.Column;
import com.gitee.sunchenbin.mybatis.actable.annotation.Table;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

import java.io.Serializable;
import java.math.BigDecimal;
import java.time.LocalDate;
import java.time.LocalDateTime;

/**
 * @author xt
 */
@Data
@EqualsAndHashCode
@Accessors(chain = true)
@Table(comment = "医生学习记录表")
public class DoctorStudyRecord implements Serializable {

    private static final long serialVersionUID = 1L;

    /**
     * 主键id
     */
    @TableId(value = "id", type = IdType.AUTO)
    @Column(isKey = true, isAutoIncrement = true)
    private Integer id;


    /**
     * 医生id
     */
    @Column(comment = "医生id")
    private Integer doctorId;


    /**
     * 名称
     */
    @Column(comment = "名称")
    private String name;


    /**
     * 书籍,视频百分比
     */
    @Column(comment = "书籍/视频百分比")
    private BigDecimal rate;

    /**
     * 封面
     */
    @Column(comment = "封面",length = 512)
    private String img;

    /**
     * 章节
     */
    @Column(comment = "小节",length = 4)
    private Integer chapter;

    /**
     * 学习id
     */
    @Column(comment = "学习id 视频id,书籍id,中药id,方剂id,医案id")
    private Integer studyId;


    /**
     * 类型 1.课程 2.书籍 3.中药 4.方剂 5.医案
     */
    @Column(comment = "类型 1.课程 2.书籍 3.中药 4.方剂 5.医案 ")
    private Integer type;

    /**
     * 状态
     */
    @Column(comment = "1.正常 -1.删除")
    private Integer status;

    /**
     * 创建时间
     */
    @Column(comment = "创建时间")
    private LocalDateTime createDate;


    @TableField(exist = false)
    private LocalDate date;


}
